//
//  ZGSDataBaseHandle.h
//  Tour
//
//  Created by dllo on 15/11/2.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
//#import "ZGSDestinationCity.h"
#import "ZGSQQQQQQQQQQ.h"
typedef NS_ENUM(NSUInteger, SelectMovie) {
    Intable,
    NotInTable,
    SelectError,
};

@interface ZGSDataBaseHandle : NSObject
{
    sqlite3 *dbPoint;
}
+ (instancetype) shareDataBaseHandle;

- (void)openDB;

- (void)createTable;
//查找并判断是否存在
- (SelectMovie)isHaveIntable:(ZGSQQQQQQQQQQ *)movie;
////收藏
- (void)saveMovieInDB:(ZGSQQQQQQQQQQ *)movie;
////取消收藏,直接删除
- (void)deleteMovieInDB:(ZGSQQQQQQQQQQ *)movie;
////逻辑删除
- (void)deleteLuoJiMovieInDB:(ZGSQQQQQQQQQQ *)movie;
//查找全部收藏电影
- (NSMutableArray *)selectAllMovie;

@end
